import './assets/main.css'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import messagePlugin from './plugins/message'
import { setupGlobalErrorHandling } from './utils/errorHandler'
import { initSecurity, isConsoleDisabled } from './config/security'

const app = createApp(App)

// 使用插件
app.use(router)
app.use(ElementPlus)
app.use(messagePlugin)

// 初始化全局错误处理
setupGlobalErrorHandling()

// 初始化安全设置（统一控制台访问控制）
initSecurity()

app.mount('#app')
